get Buy Tracker
fun getBuyTracker(sec: Account?, secCurr: CurrencyType, investCurr: CurrencyType, split: SplitTxn): CapitalGainBuy?
Deprecated
Use the unified CostCalculation class and associated methods
Generate a tracking class for a buy transaction when using average cost method. This tracker is used to figure out which shares are sold first (FIFO) so that long term and short term capital gains can be computed.
Return
A tracker class containing the cost basis of the buy transaction, including any transaction fees.
Parameters
sec
The security account for which the buy belongs.
sec Curr
The security account's currency (shares).
invest Curr
The parent investment account's currency (dollars, euro, etc.).
split
The buy transaction.